import java.util.ArrayList;

import org.junit.Test;

import junit.framework.TestCase;

import GoldenEagle.Menu;
import GoldenEagle.Order;
import GoldenEagle.Table;



public class TestTable extends TestCase{
	@Test
	public void testTablePrint()
	{
		Menu menu = TestMenu.InitMenu();
		ArrayList<Order> list = new ArrayList<Order>();
		System.out.println("[test display]");
		System.out.println("add order to 10,11,12 to table and");
		
		Order o1 = new Order(10,4,"Name1");
		o1.add(menu.getMenuSubject(0));
		o1.add(menu.getMenuSubject(1));
		
		Order o2 = new Order(13,2,"Name2");
		o1.add(menu.getMenuSubject(5));
		o1.add(menu.getMenuSubject(2));
		
		Order o3 = new Order(12,4,"Name3");
		o1.add(menu.getMenuSubject(3));
		o1.add(menu.getMenuSubject(4));
		
		
		list.add(o1);
		list.add(o2);
		list.add(o3);
		
		
		Table ta = new Table(list);
		ta.display();
		
		//this test is for testing coverage 
		assertTrue(true);
	}
}
